package com.xmy.solution.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xmy.common.annotation.Excel;
import com.xmy.common.core.domain.BaseEntity;

/**
 * 轮播图管理对象 xmy_carousel
 *
 * @author 夏明毅
 * @date 2024-12-30
 */
public class Carousel extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 轮播图
     */
    @Excel(name = "轮播图")
    private String imageUrl;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String title;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private Long status;

    /**
     * 轮播图详情
     */
    private String detail;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStatus() {
        return status;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getDetail() {
        return detail;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("imageUrl", getImageUrl())
                .append("title", getTitle())
                .append("status", getStatus())
                .append("detail", getDetail())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
